package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import cc.rengu.redp.bizimpl.upmp.domain.BankCodeInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
* @author LiuYuLiang.LL
*/
    public interface BankCodeInfoService extends IService<BankCodeInfo> {

    IPage<BankCodeInfo> findByPage(QueryRequest request, BankCodeInfo info);

    BankCodeInfo findByBankBranchCode(BankCodeInfo info);

    @Transactional
    void create(BankCodeInfo entity) throws RedpException;

    @Transactional
    void update(BankCodeInfo entity) throws RedpException;

    @Transactional
    void cancel(String id) throws RedpException;

    @Transactional
    void audit(BankCodeInfo entity, String opt, String approvalRefuseReason) throws RedpException;

    @Transactional
    void delete(String[] ids);
}
